const joi = require('joi')  // 引入joi模块

const id = joi.number().integer().min(1).required()
const category_id = joi.number().integer().min(1).required()
const title = joi.string().required()
const actor = joi.string().required()
const director = joi.string().required()
const imgUrl = joi.string().required()
exports.add = {
    body: {
        category_id,
        title,
        actor,
        director, imgUrl
    }
}
exports.put = {
    body: {
        id,
        category_id,
        title,
        actor,
        director, imgUrl
    }
}
exports.del = {
    id
}